﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Define an INotify Property using ViewModelBase</Title>
      <Shortcut>inotprop</Shortcut>
      <Description>Code snippet for a property with notify support</Description>
      <Author>Aaron Goldman</Author>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>type</ID>
          <ToolTip>Property Type</ToolTip>
          <Default>int</Default>
        </Literal>
        <Literal>
          <ID>property</ID>
          <ToolTip>Property Name</ToolTip>
          <Default>MyProperty</Default>
        </Literal>
        <Literal>
          <ID>field</ID>
          <ToolTip>Field Name</ToolTip>
          <Default>_myField</Default>
        </Literal>
      </Declarations>
      <Code Language="csharp">
        <![CDATA[

$type$ $field$;

public $type$ $property$
{
    get { return $field$; }
    set { 
            CheckPropertyChanged("$property$", ref $field$, value);
    }
}
$end$]]>

      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
